#pragma once
#include <windows.h>
#include <d3d9types.h>

class RenderTarget
{
public:
	RenderTarget() { }
	RenderTarget(int width, int height, D3DFORMAT format, bool depth);
	virtual ~RenderTarget();

	virtual void Init();
	virtual void Release();
	virtual void Attach() = 0;
	virtual void Dettach() = 0;

	int getWidth() const { return mWidth; }
	int getHeight() const { return mHeight; }
	D3DFORMAT getFormat() const { mFormat; }
	bool isDepth() const { return mDepth; }

protected:
	int mWidth;
	int mHeight;
	D3DFORMAT mFormat;
	bool mDepth;
};
